<!--
 * @FilePath     : /jquery/demo/101-13.html
 * @Description  : id 选择器是特殊字符时
 * @Date         : 2025-03-27 08:44:21
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-03-27 08:45:25
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
  </head>
  <body>
    <span id="foo:bar">1</span>
    <span id="foo[bar]">2</span>
    <span id="foo.bar">3</span>

    <script src="/library/jquery.min.js"></script>
    <script src="/common/common.js"></script>
    <script>
      console.log(1, $('#foo\\:bar'))
      console.log(2, $('#foo\\[bar\\]'))
      console.log(3, $('#foo\\.bar'))
    </script>
  </body>
</html>
